<?php

class View_Helper_Report extends Model3_View_Helper
{

    public function create()
    {
        $headers = $this->_view->_data->getHeaders();
        ?>
        <div class="panel panel-primary report">
            <div class="panel-heading">
                Reporte <strong><?php echo $this->_view->title; ?></strong>
            </div>
            <table class="table table-bordered table-condensed table-striped uppercase">
                <thead>
                    <tr>
                        <?php foreach ($headers as $key => $value): ?>
                            <th>
                                <?php echo $key; ?>
                            </th>
                        <?php endforeach; ?>
                    </tr>
                </thead>
                <tbody>
                    <?php foreach ($this->_view->_data->getData() as $row): ?>
                        <tr>
                            <?php foreach ($row as $key => $value): ?>
                                <td>
                                    <?php echo $value; ?>
                                </td>
                            <?php endforeach; ?>
                        </tr>
                    <?php endforeach; ?>
                </tbody>
            </table>
        </div>
        <?php
    }

}